package com.myspace.server.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 文章类别
 * @author peng.zhang
 */
@Data
@TableName("blog_article_category")
@ApiModel(value = "Category", description = "文章类别！")
public class ArticleCategory {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "类别 ID")
    private Long id;

    @TableField("category_name")
    @ApiModelProperty(value = "类别名称")
    private String categoryName;

    @TableField("create_time")
    @ApiModelProperty(value = "类别创建时间")
    private LocalDateTime createTime;

}
